<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // var obj = {name:"汪汪汪",number:"123456",idcard:"666",sex:"boy",major:"chlish",introduce:function(){
        //     console.log(obj.name+"学号是"+obj.number+"身份证号"+obj.idcard+"性别"+obj.sex+"专业"+obj.major)
        // }}
        // obj.introduce()
        // 个人信息


        var num = []
        for (var i = 2; i <= 60; i += 2) {
            num.push(i)
        }
        var a = 0
        var b = 0
        var c = []
        for (var j = 0; j <= 29; j++) {
            if (j%5==0&&j!=0) {
                b = a/5
                c.push(b)
                a = num[j]
            } else{
                a += num[j]
            }
            console.log(a)
        }
        console.log(c)


        // var arr = [1,2,3,4,4,2,1,3,5]
        // var res= []
        // function norepeat(arr,res){
        //     for(var i=0;i<arr.length;i++){
        //         if(res.indexOf(arr[i])==-1){
        //             res.push(arr[i])
        //         }
        //     }
        //     console.log(res)
        // }
        // norepeat(arr,res)
    </script>
</body>

</html>